package com.atguigu.gulimall.ware.service;

import com.atguigu.gulimall.ware.vo.MerageVo;
import com.atguigu.gulimall.ware.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author ls
 * @email 1725248162@qq.com
 * @date 2021-06-30 14:33:18
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnReceive(Map<String, Object> params);

    /**
     * 合并采购需求到采购单
     * @param merageVo
     */
    void mergePurchase(MerageVo merageVo);

    /**
     * 领取采购单
     * @param ids 采购单id集合
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     * @param purchaseDoneVo
     */
    void finish(PurchaseDoneVo purchaseDoneVo);
}

